<?php 
/**
*file commdel.php
* 评论删除
*
*/
define('ACC', true);
require('../include/init.php');
//用户检查
if (empty($_SESSION['username'])) {
	header("location:../index.php");
}

$tag_id = $_GET['tag_id']+0;

$tag = new TagModel();
if (!$tag->delete($tag_id)) {
	$info = '删除失败';
	include(ROOT.'view/admin/info.html');
	exit;
}else {
	$info = '删除成功';
	include(ROOT.'view/admin/info.html');
}


?>